package com.company.project.modular.system.model.warpper;

import com.company.project.core.base.warpper.BaseControllerWarpper;

import java.util.List;
import java.util.Map;

/**
 * 分享的包装类
 *
 * @author lsf
 * @date 2018年10月31日 上午10:47:03
 */
public class ShareWarpper extends BaseControllerWarpper {

    public ShareWarpper(List<Map<String, Object>> list) {
        super(list);
    }

    @Override
    public void warpTheMap(Map<String, Object> map) {
         if(map.get("shareState")!=null){
             switch(map.get("shareState").toString()) {
                 case "0":
                     map.put("shareState", "未领取");
                     break;
                 case "1":
                     map.put("shareState", "已领取");
                     break;
                 default:
                     map.put("shareState", "未知");
                     break;
             }
         }else{
             map.put("shareState", "未知");
         }


    }

}
